<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>研究报告管理</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
.vb_wid {width:100%; margin: 0 auto; border-top:1px #FDB18D solid; background:#F5F5F5; color:#FE6500; text-indent:20px; line-height:25px; font-size:12px;}
.fb_search {width:100%; margin:0 auto; margin-top:20px; border:1px #FFCD7F solid;}
.fb_search h1 {background:#FFEFBB; margin:0px; padding:0px; line-height:28px; text-indent:10px; font-size:14px;}
.fb_s_a1 {margin:5px; font-size:14px;}
.fb_s_a2 {font-size:12px; line-height:22px; color:#999; margin-left:5px;}
.fb_ddd {width:100%; margin:0 auto; margin-top:10px; border-top:3px #FFCC00 solid; background:url(images/pen.gif) no-repeat 5px 3px; height:40px; text-indent:50px; line-height:40px; color:#464646; font-size:12px;}
.fb_nr {width:100%; margin:0 auto; margin-top:10px; line-height:22px; font-size:12px; color:#464646}
.fb_nr span {color:#FF0000;}
.fb_nr select {color:464646; font-size:12px;}
.fb_nr Div {margin-top:10px; height:30px;}
.fb_nr Div input {font-size:12px; line-height:18px;}
.inputtttt {border:1px #DEA303 solid; height:20px; color:#464646; font-size:12px; background:url(images/bottom_bg.jpg) repeat-x left top;}
.lb {background:#FFCD7F; color:#464646; font-weight:bold; text-align:center; height:30px; line-height:30px;}
.lb1 {border-bottom:1px #000000 dashed; height:28px;}
.lb1 td {border-bottom:1px #ccc dashed; background:#eefefe}
.fy1 {width:90%; margin:0 auto; margin-top:8px; background:#F8F8F8; font-size:12px; height:30px; line-height:28px; text-indent:10px;}
.fy1 span {color:#FF0000; font-weight:bold;}
.fy1 a {color:#464646; text-decoration:none;}
.fy1 a:hover {color:#FF0000; text-decoration:underline;}
</style>
	
<script type="text/javascript">
 function search(){
 
  var fileTitle = document.getElementById('fileTitle').value;
  var bmFileTypeId = document.getElementById('bmFileTypeId').value;
  var bmResearchInstitutionId = document.getElementById('bmResearchInstitutionId').value;
  var status = document.getElementById('status').value;
  var gmtCreateStr = document.getElementById('gmtCreateStr').value;
  var gmtCreateEndStr = document.getElementById('gmtCreateEndStr').value;
  
  var link='/admin/homeSiteResearchReportFileUpload.do?action=list';
  if(fileTitle!=''){
    link = link + '&fileTitle='+fileTitle;
  }
  
  if(bmFileTypeId!=''){
    link = link + '&bmFileTypeId='+bmFileTypeId;
  }
  
  if(bmResearchInstitutionId!=''){
    link = link + '&bmResearchInstitutionId='+bmResearchInstitutionId;
  }
  
  if(status!=''){
    link = link + '&status='+status;
  }
  
  if(gmtCreateStr!=''){
    link = link + '&gmtCreateStr='+gmtCreateStr;
  }
  
  if(gmtCreateEndStr!=''){
    link = link + '&gmtCreateEndStr='+gmtCreateEndStr;
  }
  
  window.location.href=encodeURI(link);
  
  }
  
  
  var page;
  function toPage(page){
     
     var toPageLinkpage = document.getElementById('toPageLinkpage').value;
     //直接按页来显示
     if(page!='page'){
       var pageNum = document.getElementById('toPage').value;
       window.location.href=encodeURI(toPageLinkpage+'&page='+pageNum);
     }else{
       //转向xx页
       window.location.href=encodeURI(toPageLinkpage+'&page='+page);
     }
    
  }
</script>

  </head>
  
  <body>
  <logic:present name="del">
  <bean:write name="del" filter="false"/>
  </logic:present>
  <logic:present name="update">
  <bean:write name="update" filter="false"/>
  </logic:present>
  <logic:present name="succe">
  <bean:write name="succe" filter="false"/>
  </logic:present>
   <div class="vb_wid">研究报告管理</div>
   
   <div class="fb_search">
   <h1>资讯搜索</h1>
   <div class="fb_s_a1">搜索内容：
    <html:form action="/admin/homeSiteResearchReportFileUpload.do?action=toList" method="post">
     <label>
          名称<html:text property="fileTitle"></html:text> 
       &nbsp;&nbsp;&nbsp;
     <html:select property="bmFileTypeId">
	    <html:option value="" >请选择文件类型</html:option>
	    <logic:present name="bmFileTypeList">
		        <logic:iterate id="bmFileType" name="bmFileTypeList">
		           <option value="${bmFileType.id}" <c:if test="${homeSiteResearchReportFileUploadForm.bmFileTypeId== bmFileType.id}">selected</c:if>>${bmFileType.fileTypeName}</option>
		        </logic:iterate>
		</logic:present>
     </html:select>
     &nbsp;&nbsp;&nbsp;
     <html:select property="bmResearchInstitutionId">
              <html:option value="" >请选择研究机构</html:option>
              <logic:present name="bmResearchInstitutionList">
		        <logic:iterate id="bmResearchInstitution" name="bmResearchInstitutionList">
		           <option value="${bmResearchInstitution.id}" <c:if test="${homeSiteResearchReportFileUploadForm.bmResearchInstitutionId == bmResearchInstitution.id}">selected</c:if>>${bmResearchInstitution.institutionName}</option>
		        </logic:iterate>
		      </logic:present>
     </html:select>
     
     &nbsp;&nbsp;&nbsp;
     <html:select property="status">
              <html:option value="" >请选择状态</html:option>
              <html:option value="-1" >已删除</html:option>
              <html:option value="0" >未删除</html:option>
     </html:select>
     &nbsp;&nbsp;&nbsp;
     录入时间<html:text property="gmtCreateStr" size="10px;"></html:text> 
     ~<html:text property="gmtCreateEndStr"  size="10px;"></html:text> 
     
      </label>
  <label>
    <html:button onclick="javascript:search();void 0;" property="button" value="提交"/>
     </label>
     </html:form>
     
        </div>
   <div class="fb_s_a2">注：<font color="red">日期查询时，年月日格式为(2008-10-31,2008-12-12)。</font><br/>注：<font color="red">&nbsp;★ 为是， ☆ 为否。</font></div>
</div>
<div class="fb_nr">
 
      <logic:present name="homeSiteUploadFileList">
	<logic:notEmpty name="homeSiteUploadFileList">
 
  	<form action="/admin/homeSiteResearchReportFileUpload.do?action=toList&page=${curPage}" name="theForm1" method="post" id="theForm1">
  
  <table width="100%" border="1" cellspacing="1" style="font-size:12px">
    <tr class="lb">
      <td width="4%">&nbsp;</td>
      <td width="4%">ID</td>
      <td width="20%">文件标题</td>
      <td width="8%">文件类型</td>
      <td width="5%">研究机构</td>
      <td width="4%">添加时间</td>
      <td width="8%">是否删除</td>
      <td width="10%">修改</td>
      <td width="8%">删除</td>
    </tr>

	<logic:iterate id="homeSiteUploadFile" name="homeSiteUploadFileList">
      <tr class="lb1">
      
        <td align="center"><label>
        &nbsp;
        </label></td>
        
        <td align="center"><font color="red"><b>${homeSiteUploadFile.id}</b></font></td>
        
         <td align="center"><c:set var="titlestr3" value="${homeSiteUploadFile.fileTitle}"></c:set>
          <a  title="${homeSiteUploadFile.fileTitle}">${fn:substring(titlestr3,0,14)}</a></td>
        
        <td align="center">        
           ${fn:substring(homeSiteUploadFile.bmFileType.fileTypeName,0,10)}
        </td>

        <td align="center">${fn:substring(homeSiteUploadFile.bmResearchInstitution.institutionName,0,10)}</td>
          
        <td align="center">
         ${fn:substring(homeSiteUploadFile.gmtCreate,0,10)}
        </td>
          
        <td align="center">
        <c:if test="${homeSiteUploadFile.status==0}">★</c:if>
        <c:if test="${homeSiteUploadFile.status!=0}">☆</c:if>
       </td>
       
        <c:set  var="bkfileTitle" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.fileTitle!=null &&homeSiteResearchReportFileUploadForm.fileTitle!=''}">
          <c:set  var="bkfileTitle" value="${homeSiteResearchReportFileUploadForm.fileTitle}"/>
        </c:if>
        
        <c:set  var="bkbmFileTypeId" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.bmFileTypeId!=0}">
          <c:set  var="bkbmFileTypeId" value="${homeSiteResearchReportFileUploadForm.bmFileTypeId}"/>
        </c:if>
        
        <c:set  var="bkbmResearchInstitutionId" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.bmResearchInstitutionId!=0}">
          <c:set  var="bkbmResearchInstitutionId" value="${homeSiteResearchReportFileUploadForm.bmResearchInstitutionId}"/>
        </c:if>
        
        <c:set  var="bkstatus" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.status!=null}">
          <c:set  var="bkstatus" value="${homeSiteResearchReportFileUploadForm.status}"/>
        </c:if>
        
        <c:set  var="bkgmtCreateStr" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.gmtCreateStr!=null && homeSiteResearchReportFileUploadForm.gmtCreateStr!=''}">
          <c:set  var="bkgmtCreateStr" value="${homeSiteResearchReportFileUploadForm.gmtCreateStr}"/>
        </c:if>
        
        <c:set  var="bkgmtCreateEndStr" value=""/>
        <c:if test="${homeSiteResearchReportFileUploadForm.gmtCreateEndStr!=null && homeSiteResearchReportFileUploadForm.gmtCreateEndStr!=''}">
          <c:set  var="bkgmtCreateEndStr" value="${homeSiteResearchReportFileUploadForm.gmtCreateEndStr}"/>
        </c:if>
        
        
        <td align="center"><html:link href="javascript:window.location=encodeURI('/admin/homeSiteResearchReportFileUpload.do?action=toUpdate&id=${homeSiteUploadFile.id }&page=${curPage}&pageSize=${pageSize}&fileTitle=${bkfileTitle}&fileTypeId=${bkbmFileTypeId}&bmResearchInstitutionId=${bkbmResearchInstitutionId}&status=${bkstatus}&gmtCreateStr=${bkgmtCreateStr}&gmtCreateEndStr=${bkgmtCreateEndStr}'); void 0;"><img src="/admin/images/edititem.gif" border=0 /></html:link></td>
        <td align="center"><html:link href="javascript:window.location=encodeURI('/admin/homeSiteResearchReportFileUpload.do?action=del&id=${homeSiteUploadFile.id }&page=${curPage}&pageSize=${pageSize}&fileTitle=${bkfileTitle}&fileTypeId=${bkbmFileTypeId}&bmResearchInstitutionId=${bkbmResearchInstitutionId}&status=${bkstatus}&gmtCreateStr=${bkgmtCreateStr}&gmtCreateEndStr=${bkgmtCreateEndStr}'); void 0;"><img src="/admin/images/edititem.gif" border=0 /></html:link></td>
      </tr>
      
      	</logic:iterate>

		<tr>
	</tr>
	
		
	<tr>
	<td colspan=12>
	      <table width="100%" border="0" cellspacing="1" style="font-size:12px">
            <tr>
               <td colspan="8">
          有 <span class="red1">${recordNum}</span>条记录。当前第${curPage}页,共${allPage}页
          
          <a href="javascript:toPage('${backPage}'); void 0;" traget="_self">上一页</a>
          <a href="javascript:toPage('${nextPage}'); void 0;" traget="_self">下一页</a>
          到<form id="searchForm123" name="searchForm123">
          
                 	<input type="hidden" id="toPageLinkpage"  value="/admin/homeSiteResearchReportFileUpload.do?action=list&fileTitle=${bkfileTitle}&fileTypeId=${bkbmFileTypeId}&bmResearchInstitutionId=${bkbmResearchInstitutionId}&status=${bkstatus}&gmtCreateStr=${bkgmtCreateStr}&gmtCreateEndStr=${bkgmtCreateEndStr}" />
               	    <input id="toPage"  name="toPage" type="text" size="2"/>
                       页&nbsp;
                    <input type="button"  value=" " style="background-image: url('/admin/images/ck.gif');border:0px;width:58px;"  title="查看"  onclick="return topage('toPage');"/>
    
        </form>    
               </td>
                              
                              
            </tr>
           </table>
	</td>
	</tr>
    </table>
    
    </form>
    
    	</logic:notEmpty>
	</logic:present>
	      <logic:present name="HomeSiteNewsList">
			<logic:empty name="HomeSiteNewsList">
			<font color="red">对不起！！！，没有搜索到你想要的结果！！！</font>
			</logic:empty>
	     </logic:present>
    

   <h1><img src="image/qqddc_shop1.gif" width="720" height="8" /></h1>
</div>
	

  </body>
</html:html>










